﻿<UserControl x:Class="SBPweb.Communication.Client.Controls.Xmpp.Conversations.MessageView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:utils="clr-namespace:SBPweb.Forge.Controls.Silverlight.Utilities;assembly=SBPweb.Forge.Controls.Silverlight">
    <UserControl.Resources>
        <utils:DateTimeConverter x:Name="dateTimeConverter" />
    </UserControl.Resources>
    <StackPanel Name="spMessage" Orientation="Horizontal">
        <TextBlock Text="[" FontWeight="Bold" />
        <TextBlock Name="tbTime" Text="{Binding Converter={StaticResource dateTimeConverter}, ConverterParameter='{0:T}', Path=TimeStamp}" FontWeight="Bold" />
        <TextBlock Text="] " FontWeight="Bold" /> 
        <TextBlock Name="tbFrom" Text="{Binding From.DisplayName}" FontWeight="Bold" FontStyle="Italic" />
        <TextBlock Text=" says: " FontStyle="Italic" />
        <TextBlock Name="tbBody" Text="{Binding Body}" Foreground="#000088" />
    </StackPanel>
</UserControl>
